{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>消费会员列表</strong></li>
	</ol>
</div>
<div class="ibox float-e-margins">
	<div class="ibox-content">
		<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('index')}">	
			<div class="form-group">
				用户名 <input type="text" id="realname" name="realname" value="" placeholder="请输入用户名称" class="bank" />
				手机号码 <input type="text" id="mobile" name="mobile" value="" placeholder="请输入手机号" class="bank" />		
				商家名称 <input type="text" id="store_name" name="store_name" value="" placeholder="请输入商家名称" class="bank" />
				开始时间 <input id='start_time' name='add_time'style="width: 100px;"  onclick='WdatePicker()' type='text' placeholder="开始时间" class="bank" />
				至<input id='end_time' name='end_time'  style="width: 100px;" onclick='WdatePicker()' type='text' placeholder="结束时间" class="bank" />
				<span ><button type="submit" class="btn btn-sm btn-primary"><li class="fa fa-search"> 查询</li></button> </span>
				<a href="{:url('export')}" class="btn btn-primary btn-outline">导出会员信息</a></span>			
			</div>
		</from>
		<div class="hr-line-dashed"></div>
		<div class="example-wrap">
			<div class="example">
				<form method="post" action="{:url('index')}">
					<table class="table table-bordered table-hover">
						<thead>
							<tr class="long-th">
							
								<th>用户名</th>
								<th>手机号码</th>
								<th>商家名称</th>
								<th>积分</th>
								<th>添加时间</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							{foreach name="list" item="vo"}
							<tr>
							
								<td class="text-center">{$vo.real_name}</td>
								<td class="text-center">{$vo.mobile}</td>
								<td class="text-center">{$vo.store_name}</td>
								<td class="text-center">{$vo.score}</td>
								<td class="text-center">{$vo.time}</td>
								<td class="text-center">消费记录</td>
							</tr>
							{/foreach}
						</tbody>
					</table>
					<div style="text-align: right;">
                      {$list->render()}
                    </div>
				</form>
			</div>
		</div>
	</div>
</div>

<script src="__LIB__/datepicker/WdatePicker.js"></script>
{/block} {block name="script"}
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>
{/block}